<%--
  Created by IntelliJ IDEA.
  User: 83429
  Date: 2021/10/27
  Time: 15:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.Date" %>
<%@ page info="This in index.jsp" %>
<%@ include file="index.jsp"%><%--在当前页面使用该指令的位置嵌入其他的文件，如果被包含的文件中有可执行的代码，则显示代码执行后的结果--%>
<%=this.getServletInfo() %>
<html>
<head>
    <title>JSP页面的基本构成</title>
</head>
<body>
<%String name="www.xxx.com"; %>
用户名：<%=name%>
<%String path="welcome.jsp";%>
<a herf="<%=path%>">链接到welcome.jsp</a>
<%String name1="login.jsp";%>
<from action="<%=name1%>"></from>
    <%=this.getServletInfo() %>
    <center>
        <% String today=new Date().toLocaleString();%>
        今天是：<%=today%>
    </center>
    <table>
        <tr><td colspan="2"><%@ include file="index.jsp"%></td> </tr>
        <tr>
            <td><%@ include file="login.jsp"%>></td>
            <td>在这里对显示区进行编码</td>
        </tr>
        <tr><td colspan="2"><%@ include file="reg.jsp"%></td></tr>
    </table>
</body>
</html>
